Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDocument


Exists

The Exists method returns a Boolean value that indicates whether the specified draft exists in this document.

ODBoolean Exists (in ODDraftID id,
                  in ODDraft draft, 
                  in ODPositionCode posCode);
id
The draft ID, or kODNULLID to use the draft and posCode parameters to identify the desired draft.
draft
A reference to the draft object that is used with the posCode parameter to identify the desired draft, or kODNULL to use the id parameter to identify the desired draft.
posCode
The position, relative to the draft parameter, of the desired draft in this document's draft history, or kODPosUndefined to use the id parameter to identify the desired draft.
return value
kODTrue if the desired draft exists, otherwise kODFalse.
DISCUSSION
If the id parameter is not null, this method uses that parameter to identify the desired draft and ignores the draft and posCode parameters. If the id parameter is kODNULLID, this method uses the draft and posCode parameters to identify the desired draft.

EXCEPTIONS
kODErrInsufficientInfoInParams
No draft was specified; the id parameter is kODNULLID and the draft parameter is kODNULL.
kODErrUnsupportedPosCode
The specified position code is not supported.
SEE ALSO
The ODDraftID type (page 902).
The ODPositionCode type (page 915).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help